package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 班级学期
 * </p>
 *
 * @author xiangyan
 * @since 2020-08-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClassSemester extends Model<ClassSemester> {

    private static final long serialVersionUID = -5960142538756967793L;

    /**
     * 学期ID
     */
    @TableId(value = "semester_id", type = IdType.AUTO)
    private Integer semesterId;

    /**
     * 归属组织ID
     */
    private Integer orgId;

    /**
     * 班级id
     */
    private Integer classId;

    /**
     * 类型 1实习课程 2技能培训
     */
    private Integer semesterType;

    /**
     * 学期名称
     */
    private String semesterName;

    /**
     * 生成时间
     */
    private Date createTime;

    /**
     * 创建人
     */
    private Integer createAdminId;

    /**
     * 状态 1启用 0 关闭
     */
    private Integer status;

    /**
     * 排序
     */
    private Integer sortOrder;


    @Override
    protected Serializable pkVal() {
        return this.semesterId;
    }

}
